﻿using Domain.Entity.Config;
using Domain.Repository.IConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.Config
{
    public class Config_major_kindAppService : IConfig_major_kindAppService
    {
        private readonly IConfig_major_kindRepository cmk;

        public Config_major_kindAppService(IConfig_major_kindRepository cmk)
        {
            this.cmk = cmk;
        }
        //查询全部
        public Task<List<Config_major_kind>> SelectCMKAsync()
        {
            return cmk.SelectCMKAsync();
        }
        //删除
        public Task<int> DeleteEIAsync(int Id)
        {
            return cmk.DeleteEIAsync(Id);
        }
        //添加
        public Task<int> AddEIAsync(Config_major_kind config_Major_Kind)
        {
            return cmk.AddEIAsync(config_Major_Kind);
        }

        public List<Config_major_kind> WenId(int Id)
        {
           return cmk.WenId(Id);
        }
    }
}
